<template>
  <div class="home">
    <el-container>
      <!-- 头部导航 -->
      <el-header :style="`background:${this.$global.bgColor}`">
        <Header />
      </el-header>
      <el-container>
        <!-- 左侧机构 -->
        <el-aside width="200px" :style="`background:${this.$global.bgColor}`">
          <leftTree />
        </el-aside>
        <!-- 右侧内容 -->
        <el-main :style="`background:${this.$global.bgColor}`">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Header from "../components/Header/Header";
import leftTree from "../components/leftTree/leftTree";
export default {
  name: "Home",
  components: { Header, leftTree },
  data() {
    return {};
  },
  mounted() {}
};
</script>


<style scoped lang='scss'>
.el-header {
  color: #333;
  line-height: 60px;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
}

.el-aside {
  color: #333;
  position: fixed;
  height: 91vh;
  border: 5px solid #fff;
  border-bottom: none;
}

.el-main {
  color: #333;
  border: 5px solid #fff;
  margin-left: 197px;
  padding: 10px;
}

body > .el-container {
  margin-bottom: 40px;
}
.el-container {
  margin-top: 30px;
}
.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>